package dk.modified.reshary;

import android.os.Parcel;
import android.os.Parcelable;

public class Owners implements Parcelable {
	
	public static final int STATE_IMAGE = 1;
	public static final int STATE_GIF = 2;
	public static final int STATE_VIDEO = 3;
	

	private String id;
	private String filename;
	private String videoFilename;
	private String thumbnail;
	private String sharingurl;
	private String shares;
	private String dateadded;
	private String owner;
	private String imageTitle;
	private int mediaState;

	public Owners() {
		super();
	}

	public Owners(String id, String filename,String videoFilename, String thumbnail,
			String sharingurl, String shares, String dateadded, String owner,String imageTitle, int mediaState) {
		this.id = id;
		this.filename = filename;
		this.videoFilename = videoFilename;
		this.thumbnail = thumbnail;
		this.sharingurl = sharingurl;
		this.shares = shares;
		this.dateadded = dateadded;
		this.owner = owner;
		this.imageTitle = imageTitle;
		this.mediaState = mediaState;
	}

	public String getId() {
		return id;
	}

	public String getOwner() {
		return owner;
	}

	public String getShares() {
		return shares;
	}

	public String getDateadded() {
		return dateadded;
	}

	public String getTitle() {
		return imageTitle;
	}

	public String getThumbnail() {
		return thumbnail;
	}

	public String getFilename() {
		return filename;
	}

	public String getSharingurl() {
		return sharingurl;
	}
	
	
	public String getVideoFilename() {
		return videoFilename;
	}

	public int getMediaState() {
		return mediaState;
	}

	private Owners(Parcel in) {
		id = in.readString();
		thumbnail = in.readString();
		videoFilename = in.readString();
		filename = in.readString();
		sharingurl = in.readString();
		shares = in.readString();
		dateadded = in.readString();
		owner = in.readString();
		imageTitle = in.readString();
		mediaState = in.readInt();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(thumbnail);
		dest.writeString(videoFilename);
		dest.writeString(filename);
		dest.writeString(sharingurl);
		dest.writeString(shares);
		dest.writeString(dateadded);
		dest.writeString(owner);
		dest.writeString(imageTitle);
		dest.writeInt(mediaState);
	}

	public static final Parcelable.Creator<Owners> CREATOR = new Parcelable.Creator<Owners>() {
		public Owners createFromParcel(Parcel in) {
			return new Owners(in);
		}

		public Owners[] newArray(int size) {
			return new Owners[size];
		}
	};

}
